/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */

#ifndef __PQ_ConnectionManager_H__
#define __PQ_ConnectionManager_H__

#include "Thread.h"

namespace PQServiceLogin
{
	/*This class handles login database
	*/
	class ConnectionManager
	{
	protected:
		ConnectionManager(void);
	public:
		~ConnectionManager(void);
		static ConnectionManager& getSingleton()
		{
			static ConnectionManager inst;
			return inst;
		}

		void init();

		/*Start Connection Thread.
		*/
		void start();
	protected:
		PQCore::Thread* _thread;//connection thread

	};
}
#endif
